<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <script src="/static/layui/layui.js"></script>
</head>
<body>
<div class="layui-row" style="margin-top:100px">
    <div class="layui-col-md4 layui-col-md-offset4" >
        <fieldset class="layui-elem-field layui-field-title">
            <legend>用户登陆</legend>
        </fieldset>
        <form class="layui-form" action="{:url('login/loginCheck')}"  method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="text" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">登陆</button>
                </div>
            </div>

        </form>
    </div>

</div>
<script>
    //富文本编辑器
    layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.set({
            uploadImage: {
                url: '{:url("index/upload")}', //接口url
                type: 'post' //默认post
            }
        });
        layedit.build('demo'); //建立编辑器
    });
    //Demo
    layui.use('form', function(){
        var form = layui.form;
    });
</script>
</body>
</html>